extends Talent

var buffs = globalData.infoDs["g_azurlaneBuffs"]
func init():
	name = "重点打击"
func _connect():
	sys.main.connect("onBattleStart",self,"run5")
	sys.main.connect("onCharaNewChara", self, "onCharaNewChara")

func onCharaNewChara(cha):
	if cha.team == 1:
		cha.addBuff(b_focusStrike.new(lv))	

func run5():
	for i in sys.main.btChas:
		if i.team == 1:
			i.addBuff(b_focusStrike.new(lv))

#7 9 11 13 15
func get_info():
	return "我方角色(含召唤物)提高%d%%暴击率"%[5+lv*2]

class b_focusStrike extends "../../azurlane_ctrl/AzurBuff.gd":
	func _init(tlv):
		dispel = 2
		buffName = "重点打击"
		attInit()
		id = "b_focusStrike"
		att.cri = 0.05+tlv*0.02
